perm filename CARDS.POX[UP,DOC]1 blob
sn#435298 filedate 1979-04-21 generic text, type C, neo UTF8
COMMENT ⊗ VALID 00003 PAGES
C REC PAGE DESCRIPTION
C00001 00001
C00002 00002 \|\\ This file describes the playing card fonts CRx###. POX this file,
C00008 00003 \←=-8\λ\Y=120\QL\←=223\→L
C00011 ENDMK
C⊗;
\|\\; This file describes the playing card fonts CRx###. POX this file,
\; then XPART C1←CARDS.XGP(1), spool C1.XGP, and XPART C2←CARDS.XGP(2:*)
\; and spool C2. (The font compiler can't hack the whole file at once.)
\;
\M0GACS25;\M1CRD219;\M2CRT219;\M3CRB219;\M4CRL219;\M5CRR219;\;
\M6CRD165;\M7CRL165;\F0\;
\⊂'312455;\←=4;\λ\T=120;\←=140;\→L\¬=1700;\→R\B=2080;\;
\JFor people using card games for research projects, or just for fun, several
"playing card" fonts have been created. They come in three sizes; two are suitable
for spooling, whereas the third is relatively small and is intended for display on
DataDiscs by game-playing programs. The largest font is CRD219, shown below:\.
\QL\QR\←=10;\λ\*∀\→L\←=1650;\→R
\F1.-?!
ABCDEFGHIJ
NOPQRSTUVW
abcdefghij
nopqrstuvw
KLMXYZ
klmxyz\F0
\qR\qL\←=4;\λ
\JThe font has height 219, and all characters use the full 219 pixels. Baseline is
at the bottom. Each card has width 150, including 4 pixels white space on the left
and 3 on the right. The character set for all card fonts is as follows: The top
row above is ".-?!". Clubs are A-M (Ace-King), diamonds are N-Z, hearts are a-m,
and spades are n-z. A card-width space is also provided in each font.
*** WARNING!! *** \" \" These fonts, particularly CRD219, are quite large and, if
used together with other fonts in a single document, often overflow the core
available to the font compiler. Unless you're using TEX, you may have to use the
XPART command so that only those characters you actually use get loaded by the font
compiler. If that doesn't help, you'll have to use XGPSYN's "L" command to list the
XGP file.
To go with CRD219 are four fonts for drawing tableaux in which cards overlap.
CRT219 contains the tops of cards, CRB219 the bottoms, CRL219 the left portions, and
CRR219 the right. (CRT219 and CRB219 actually have height 71, but for clarity are
named after the "parent" font. For best results when using those two fonts, specify
an overlap of 8 pixels; in POX, that's "\"\←=-8;\"\λ".) Here's a sample tableau
using CRT219 with CRD219.\.
\QL\QR\←=-8;\λ\←=100;\→L\←=1650;\→R\←;\→y\Yy
\F2Z
Y
X
W
V
U
g
S
R
Q
P
b
a
\f1h\F0
\←L\+=150;\→L\Yy
\F2K
J
I
H
G
F
E
q
p
o
n
\f1n\F0
\←L\+=150;\→L\Yy
\F2i
\f1w\F0
\←L\+=150;\→L\Yy
\F2I
H
r
T
\f1Z\F0
\←L\+=150;\→L\Yy
\F2l
K
j
i
h
s
r
q
p
B
f
R
Q
\f1v\F0
\←L\+=150;\→L\Yy
\F2V
l
k
\f1N\F0
\←L\+=150;\→L\Yy
\F2L
M
y
x
W
v
u
t
s
\f1Y\F0
\←L\+=150;\→L\Yy
\F2z
x
O
A
\f1g\F0
\←L\+=150;\→L\Yy
\F2?
?
X
T
f
E
d
c
O
a
D
C
B
A
\f1G\F0
\←L\+=150;\→L\←;\→Y\Yy
\F2y
M
\f1C\F0
\YY\qR\qL\←=4;\λ\←=0;\ε
\JThe CRL and CRR fonts take care of their own overlapping with no special
action required on the part of the user. The following page shows a sample
tableau using all four partial fonts.
Meanwhile, there's CRD165 (and CRT165, etc.), with height 165 and width 112
(including 3 white space on left and 2 on right). The CRT165 and CRB165
fonts are 54 high and work best with an overlap of 7. Here's a row of cards of
this size, using CRL165 and CRD165.\.
\C\F7???ZYXWVUTSRQPONmlkjihgfedcbazyxwvutsrqpo\f6n\F0
\←=-8;\λ\Y=120;\QL\←=223;\→L
\F2A
B
C
D
E
F
G
H
I
J
K
L
\F1M \F4NOPQRSTUVWXY\F1Z\F0
\Y=120;
\F1 z\F5yxwvutsrqpon\F1 \←.m
\F3\→.l
\→.k
\→.j
\→.i
\→.h
\→.g
\→.f
\→.e
\→.d
\→.c
\→.b
\→.a\F0
\qL\←=4;\λ
\J Finally, there's CRD77, which is intended for display on DataDiscs.
If printed on the XGP, it will look somewhat elongated, since it is trying to
compensate for the eccentricity of DataDisc pixels. Since overlapping on DataDiscs
can be done by overlaying data in memory, the partial-card fonts are not provided in
this size. Also, CRD77 contains a special character, "⊗", which is the same as
"." but with the interior of the card completely filled in; this character is intended
for use as a mask to determine which pixels to alter when laying one card on top of
another in a DataDisc buffer.
CRD77 is not quite finished; in particular, some of the face cards need
work, and so does the joker. It's being released now in order to get it into the
next font catalog.
This description was produced by POXing the file CARDS.POX[UP,DOC] and
XPARTing the resulting XGP file twice, once to get just the first page and
once to get the rest. The top of page 2 of CARDS.POX tells how to do this.
Comments to DON.\.
\Y=1780;\R\F1!